<template>
    <div class="map" id="allmap">
    
    </div>
</template>

<script>
    import BMap from 'BMap'
    // import BMapSymbolSHAPEPOINT from 'BMap_Symbol_SHAPE_POINT'
    export default {
        methods: {
            baiduMap () {
                var map = new BMap.Map('allmap')
                var point = new BMap.Point(114.337185, 30.531603)
                map.centerAndZoom(point, 16)
                var marker = new BMap.Marker(point)  // 创建标注
                map.addOverlay(marker)              // 将标注添加到地图中
            }
        },
        mounted () {
            this.baiduMap()
        }
    }
</script>

<style lang="stylus">
    .map
        width: 100%
        height: 100%
</style>